package com.moonlit.myspring;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by Emou on 2021/1/18
 */
public class AutowirePractise {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring-idol.xml");
        Hero guanyu = (Hero) context.getBean("guanyu");
        guanyu.perform();
    }
}
